/**
 * 教师数据存储类编写
 */

import { classToNewList } from "@/utils/util";

// 数据存储类使用示例
export class AdminUserInfo {
  constructor(info, password, remember) {
    /**
     * @method 教师账号信息
     * @param {int}    adminUserId    用户id
     * @param {String} adminAccount   用户账号
     * @param {String} avatar         用户头像
     * @param {String} password       用户密码
     * @param {boolean} remember      是否需要记住密码
     * @param {String} token          token令牌
     */
    this.adminUserId = info.id || 0;
    this.adminAccount = info.account || "";
    this.avatar = info.avatar || "";
    this.password = password || "";
    this.remember = remember || false;
    this.token = info.token || "";
  }
}